package com.force.module.mcpclient.repo;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.force.module.mcpclient.domain.AppUser;
import com.force.module.mcpclient.repo.mapper.AppUserMapper;
import org.springframework.stereotype.Service;

@Service
public class AppUserRepo extends ServiceImpl<AppUserMapper, AppUser> {

    public AppUser getAppUserByName(String name) {
        LambdaQueryWrapper<AppUser> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(AppUser::getUserName,name);
        return this.getOne(queryWrapper);
    }
}
